package org.hy.persistence.mypage;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.hy.domain.mypage.MyInterestResearch;
import org.hy.domain.mypage.MyInterestResearchComment;

public interface MyInterestResearchMapper {
	MyInterestResearch findMyInterestResearchById(Integer id);
	
	MyInterestResearch findMyInterestResearchWithCommentsById(@Param("id") int id,@Param("offset")int offset,@Param("size")int size);
	
	MyInterestResearch findMyInterestResearchWithDefaultCommentsById(int id);
	
	List<MyInterestResearch> findMyInterestResearchesWithCommentsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	List<MyInterestResearch> findMyInterstResearchesWithDefaultCommentsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	List<MyInterestResearchComment> findCommentsWithMyInterestResearchByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	int insertMyInterestResearch(MyInterestResearch myInterestResearch);
	
	int deleteMyInterestResearch(int id);
	
	int updateMyInterestResearch(MyInterestResearch myInterestResearch);
	
    int countMyInterestResearch(Integer uid);
	
	int countMyInterestResearchComment(int refFeedId);
}
